package com.bike.entity;

import java.util.List;

public class SysMenu {
    private Long menuId;

    private String name;

    private String url;

    private String path;

    private Integer addTime;

    private Integer status;

    private String note;

    private Integer sort;

    private Long parentId;

    private Integer level;
    
    private long id;
    private String state;
    private long pid;
    private String iconCls;
    private String text;
    private int isRight=0;
    
    private long tempRoleId;
    
    private boolean checked = false;
    
    
    
    private List<SysMenu> children;
    
    
    
    public int getIsRight() {
		return isRight;
	}

	public void setIsRight(int isRight) {
		this.isRight = isRight;
	}

	public long getTempRoleId() {
		return tempRoleId;
	}

	public void setTempRoleId(long tempRoleId) {
		this.tempRoleId = tempRoleId;
	}

	public boolean isChecked() {
		return checked;
	}

	public void setChecked(boolean checked) {
		if(checked){
			this.isRight =1;
		}
		this.checked = checked;
	}

	public List<SysMenu> getChildren() {
		return children;
	}

	public void setChildren(List<SysMenu> children) {
		this.children = children;
	}

	public long getId() {
		return menuId;
	}

	public long getPid() {
		return parentId;
	}

	public String getState() {
		if(level==1){
			return "closed";
		}
		return "open";
	}

	public String getIconCls() {
		return path;
	}

	public String getText() {
		return name;
	}

	public Long getMenuId() {
        return menuId;
    }

    public void setMenuId(Long menuId) {
        this.menuId = menuId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url == null ? null : url.trim();
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path == null ? null : path.trim();
    }

    public Integer getAddTime() {
        return addTime;
    }

    public void setAddTime(Integer addTime) {
        this.addTime = addTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note == null ? null : note.trim();
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }
}